Ac motor testing